//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.xyy.jd_clund.enums;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

public enum TaskEnum {
    PRODUCT_FULL(10001, "商品全量信息", 1, "", 1, "erp_code", 1000, 1440),
    PRODUCT_UPDATE(20001, "商品更新信息", 2, "erp_code", 2, "erp_code", 1000, 60),
    PRODUCT_STOCK(30001, "商品库存", 3, "erp_code", 2, "erp_code", 1000, 1),
    PRODUCT_PRICE(40001, "商品价格", 4, "erp_code", 2, "erp_code", 1000, 1),
    ORDER_TOTAL(50001, "订单汇总", 5, "", 0, "", 1000, 1),
    ORDER_DETAILE(50002, "订单明细", 5, "", 0, "", 1000, 1),
    ORDER_BILL(50003, "订单发票", 5, "", 0, "", 1000, 1),
    ORDER_CANCEL(60001, "订单取消", 6, "", 0, "", 1000, 1),
    ORDER_DELIVERY_WMS(70001, "出库单物流", 7, "order_no", 2, "order_no", 1000, 10),
    ORDER_DELIVERY_DETAILE(80001, "出库单明细", 8, "order_no", 2, "order_no", 1000, 10),
    CLIENT_INFO(90001, "客户信息", 9, "", 0, "customer_id", 1000, 10),
    CLIENT_QUALIFICATION(100001, "客户资质", 10, "", 0, "customer_id", 1000, 10),
    CLIENT_BUSINESS_SCOPE(110001, "客户经营范围", 11, "", 0, "customer_id", 1000, 10),
    CLIENT_PUSH_DOWN(120001, "平台客户下推", 12, "", 0, "", 1000, 2),
    INVOICE_RETURN(130001, "电子发票回传", 13, "order_no", 2, "order_no", 1000, 10),
    ORDER_ERP_CODE(140001, "订单ERP编码更新", 14, "", 0, "", 1000, 1),
    ORDER_COMPLETE(150001, "订单分拣", 15, "order_no", 2, "order_no", 1000, 1),
    ORDER_TOTAL_V2(160001, "订单汇总V2", 16, "", 0, "", 1000, 1),
    ORDER_DETAILE_V2(160002, "订单明细V2", 16, "", 0, "", 1000, 1),
    CLIENT_PUSH_DOWN_V2(170001, "平台客户下推V2", 17, "", 0, "", 1000, 2);

    private Integer taskId;
    private String taskName;
    private Integer taskGroup;
    private String queryField;
    private Integer queryParamType;
    private String orderBy;
    private Integer pageSize;
    private Integer interval;
    public static final Map<Integer, TaskEnum> FactorEnumMap = new HashMap();

    private TaskEnum(Integer taskId, String taskName, Integer taskGroup, String queryField, Integer queryParamType, String orderBy, Integer pageSize, Integer interval) {
        this.taskId = taskId;
        this.taskName = taskName;
        this.taskGroup = taskGroup;
        this.queryField = queryField;
        this.queryParamType = queryParamType;
        this.orderBy = orderBy;
        this.pageSize = pageSize;
        this.interval = interval;
    }

    public static boolean isOrder(Integer taskId) {
        return Objects.isNull(taskId) ? false : orderEquals(taskId, ORDER_TOTAL, ORDER_DETAILE, ORDER_BILL, ORDER_TOTAL_V2, ORDER_DETAILE_V2);
    }

    private static boolean orderEquals(Integer taskId, TaskEnum... args) {
        TaskEnum[] var2 = args;
        int var3 = args.length;

        for(int var4 = 0; var4 < var3; ++var4) {
            TaskEnum anEnum = var2[var4];
            if (anEnum.getTaskId().equals(taskId)) {
                return true;
            }
        }

        return false;
    }

    public static TaskEnum findValue(Integer taskId) {
        return (TaskEnum)FactorEnumMap.get(taskId);
    }

    public Integer getTaskId() {
        return this.taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return this.taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Integer getTaskGroup() {
        return this.taskGroup;
    }

    public void setTaskGroup(Integer taskGroup) {
        this.taskGroup = taskGroup;
    }

    public String getQueryField() {
        return this.queryField;
    }

    public void setQueryField(String queryField) {
        this.queryField = queryField;
    }

    public String getOrderBy() {
        return this.orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getInterval() {
        return this.interval;
    }

    public void setInterval(Integer interval) {
        this.interval = interval;
    }

    public Integer getQueryParamType() {
        return this.queryParamType;
    }

    public void setQueryParamType(Integer queryParamType) {
        this.queryParamType = queryParamType;
    }

    static {
        TaskEnum[] var0 = values();
        int var1 = var0.length;

        for(int var2 = 0; var2 < var1; ++var2) {
            TaskEnum taskEnum = var0[var2];
            FactorEnumMap.put(taskEnum.getTaskId(), taskEnum);
        }

    }
}
